.class public Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;
.super Ljava/lang/Object;
.source "SecuredRequestBuilder.java"


# static fields
.field private static final FIND_ACCOUNT_ACTION:Ljava/lang/String; = "FindAccount"

.field private static final LINK_ACCOUNTS_ACTION:Ljava/lang/String; = "LinkAccounts"

.field private static final RESET_BALANCE_ACTION:Ljava/lang/String; = "ResetAccountBalance"

.field private static final SET_BALANCE_ACTION:Ljava/lang/String; = "SetAccountBalance"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field private static final UPDATE_BALANCE_ACTION:Ljava/lang/String; = "UpdateAccountBalance"


# instance fields
.field private final mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 56
    new-instance v0, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    invoke-direct {v0}, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-void
.end method

.method private setProprs(Ljava/lang/String;)V
    .locals 2
    .parameter "action"

    .prologue
    .line 137
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;->setCommand(Ljava/lang/String;)V

    .line 138
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;->setSecurityKey(Ljava/lang/String;)V

    .line 139
    return-void
.end method


# virtual methods
.method public buildFindAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    .locals 1

    .prologue
    .line 85
    const-string v0, "FindAccount"

    invoke-direct {p0, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setProprs(Ljava/lang/String;)V

    .line 86
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-object v0
.end method

.method public buildLinkAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    .locals 1

    .prologue
    .line 95
    const-string v0, "LinkAccounts"

    invoke-direct {p0, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setProprs(Ljava/lang/String;)V

    .line 96
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-object v0
.end method

.method public buildResetAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    .locals 1

    .prologue
    .line 127
    const-string v0, "ResetAccountBalance"

    invoke-direct {p0, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setProprs(Ljava/lang/String;)V

    .line 128
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-object v0
.end method

.method public buildSetAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 117
    const-string v0, "SetAccountBalance"

    invoke-direct {p0, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setProprs(Ljava/lang/String;)V

    .line 118
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-object v0
.end method

.method public buildUpdateAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 106
    const-string v0, "UpdateAccountBalance"

    invoke-direct {p0, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setProprs(Ljava/lang/String;)V

    .line 107
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    return-object v0
.end method

.method public setData(Ljava/lang/Object;)Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;
    .locals 1
    .parameter "data"

    .prologue
    .line 65
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;->setData(Ljava/lang/Object;)V

    .line 66
    return-object p0
.end method

.method public setRawResponse()Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;
    .locals 2

    .prologue
    .line 75
    iget-object v0, p0, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->mRequest:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/currency/secured/SecuredServiceRequest;->setRawResponse(I)V

    .line 76
    return-object p0
.end method
